//
//  ZXTableView.m
//  TangJi
//
//  Created by xilaida on 2017/11/9.
//  Copyright © 2017年 xilaida. All rights reserved.
//

#import "ZXTableView.h"
#import "XGConfig.h"

@implementation ZXTableView

- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style{
    self = [super initWithFrame: frame style:style];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        self.showsVerticalScrollIndicator = NO;
        self.showsHorizontalScrollIndicator = NO;
        if (IOS11) {
            self.estimatedRowHeight = 0;
            self.estimatedSectionHeaderHeight = 0;
            self.estimatedSectionFooterHeight = 0;
        }
        self.separatorColor = UIColorFromRGB(0xf5f5f5);
    }
    return self;
}

//- (void)setHeadView:(MJRefreshComponentRefreshingBlock)block{
//    self.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
//        block();
//    }];
//}
//
//- (void)setFooterView:(MJRefreshComponentRefreshingBlock)block{
//    self.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
//        block();
//    }];
//}
//
//- (void)beginRefreshing{
//    [self.mj_header beginRefreshing];
//}
//
//- (void)endRefreshing{
//    [self.mj_header endRefreshing];
//    [self.mj_footer endRefreshing];
//}
//
//- (void)endRefreshingHeader{
//    [self.mj_header endRefreshing];
//}
//
//- (void)endRefreshingFooter{
//    [self.mj_footer endRefreshing];
//}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
